var status = -1;

function action(d, b, a) {
    if (d === 0) {
        status--
    } else {
        status++
    }
    var c = cm.getInfoQuest(30062);
    if (c != null && c.equals("NpcSpeech=13020161/13020072/13020183")) {
        cm.sendOk("我，我说！我全说！")
    } else {
        cm.sendOk("我是骄傲的大海盗！我是绝对不会开口的！")
    }
    cm.dispose()
}

function start() {
    status = -1;
    action(1, 0, 0)
};